package com.bw.skill.mvvm.model;

import com.bw.skill.entity.AddSecKillEnttiy;
import com.bw.skill.entity.SecKillEntity;

import io.reactivex.Observable;
import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.POST;

/**
 * @author KK
 * @description:
 * @date :2021/10/26 16:09
 */
public interface Api {

    //秒杀列表
    @POST("secKill/seckilles")
    Observable<SecKillEntity> requestSecKill(@Body RequestBody body);

    //添加购物车
    @POST("secKill/seckill")
    Observable<AddSecKillEnttiy> requestAddSecKill(@Body RequestBody body);
}
